package com.candy.test;

import java.util.Scanner;

public class zy02 {
    public static void main(String[] args) {
        System.out.println("请输入你的成绩：");
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        if(a>100||a<0){
            System.out.println("成绩无效");
        }else {
            switch (a / 10) {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                    System.out.println("等级为E");
                    break;
                case 6:
                    System.out.println("等级为D");
                    break;
                case 7:
                    System.out.println("等级为C");
                    break;
                case 8:
                    System.out.println("等级为B");
                    break;
                case 9:
                case 10:
                    System.out.println("等级为A");
                    break;
            }
        }
    }
}
